home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl720
/
sst115j.lzh
/
LDEMO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-01
|
1KB
|
60 lines
#include <dos.h>
#include <stdio.h>
#include <string.h>
#include <mem.h>
#include <stdlib.h>
#include <conio.h>
#include "sstvid.h"
#include "sstkey.h"
#include "sstwin.h"
char *titles [] = {
" Int ",
" Char ",
" Float ",
" Unsigned ",
" Double ",
" Steven ",
" Thomas ",
" Alex ",
" David ",
" James ",
" Joshua ",
" Allan ",
0
};
/* ------------------------------------------------------------------------ */
void ShowList(void)
{
int s = 0;
WINDOW *mn;
char **cp;
vsetcur(0,25);
mn = Westablish(10, 4, 14, 14);
Wsettitle(mn, "[Pick one]",JUST_C);
Wsetcolour(mn, WIN_ALL, BLUE, CYAN, DIM);
Wsetcolour(mn, WIN_ACCENT, LIGHTGRAY, BLUE, DIM);
Wsetcolour(mn, WIN_TITLE, BLUE, YELLOW, DIM);
Wshow(mn);
cp = titles;
cp+=3;
while (*cp)
Wprintf(mn, "%s\n", *cp++);
s = Wgetsel(mn, 1, NULL);
Wdeleteall();
vsetcur(0,0);
printf("selection = %d\n",s);
}
/* ------------------------------------------------------------------------ */
void main(void)
{
clrscr();
ShowList();
}